function create_updated_collection(collection_a, object_b) {
  //在这里写入代码
  for(let i=0;i<collection_a.length;i++){
    for(let j=0;j<object_b.value.length;j++){
      if(collection_a[i].key==object_b.value[j]){
        let m=parseInt(collection_a[i].count/3) ;
        collection_a[i].count=collection_a[i].count-m;
      }
    }
  }
  return collection_a;
}

module.exports = create_updated_collection;
